package com.baseLesson.reflect.mapperDemoClass;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;

import java.io.IOException;

/**
 * hadoop,hdfs,welcome
 */
public class YourMapper extends Mapper<LongWritable, Text,Text,Text> {

    @Override
    protected void map(LongWritable key, Text value) throws IOException, InterruptedException {
        String[] split = value.toString().split(",");


        for (int i = 0; i < split.length; i++) {
            System.out.println("数据处理之后： "+split[i]);
        }
    }
}
